From: Carlos Garnacho Date: Tue, 30 Dec 2025 13:35:50 +0000 (+0100) Subject: lookingGlass: Drop seat state check after grabs X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~39^2~1^2~60 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=23cb3ab4566c412dc08e9e324dc87cd09433c119;p=gnome-shell.git lookingGlass: Drop seat state check after grabs Grabs are non-failable now, we do not need to check for the backend seat actually having been able to perform the request. Part-of: --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index a165ae271..02cda39fd 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -483,11 +483,6 @@ class ObjInspector extends St.ScrollView { return; const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS}); - if (grab.get_seat_state() !== Clutter.GrabState.ALL) { - Main.popModal(grab); - return; - } - this._grab = grab; this._previousObj = null; this._open = true; @@ -1657,11 +1652,6 @@ class LookingGlass extends St.BoxLayout { return; const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS}); - if (grab.get_seat_state() !== Clutter.GrabState.ALL) { - Main.popModal(grab); - return; - } - this._grab = grab; this.show(); this._open = true;